<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/metaHead.jsp"%>
		
		<form:form action="${mvcpath}/rulesinfo.do" modelAttribute="entity" method="post">
		<form:hidden path="id" />
 


<div class="column full">
	<div class="box themed_box">
		<h2 class="box-header">${entity.rolename}--权限规则</h2>
		<div class="box-content">
			<div class="clear"></div>
				 
			<c:forEach var="item"  items="${entity.rolesAuthority}"  varStatus="status">
			 
			 <span class="gridsmall width20 fl">
			 
			 ${item.authority.authinfo}  
		    <select id="countries"  multiple="multiple" name="${item.authority.id}Rules">
			<option value="" >全部</option>
			<c:forEach var="rule"  items="${rulesinfo}">
				<option value="${rule.id}" <c:forEach var="sub" items="${item.rulesInfos}"><c:if test="${sub.id==rule.id}">selected</c:if></c:forEach>>${rule.type}</option>
			</c:forEach>
			</select>
			</span>
				</c:forEach>
 
				<div class="clear"></div>
					<hr/>
					<div style="clear:both;height:36px;" >
		<ul style="float:right;">
						 <li style="float:left;"><input id="cancel" class="button themed" type="button" value="取 消" name="cancel" /></li>
			 <li style="float:left;"><input id="validate" class="button themed" type="submit" value="保 存" name="submit" /></li>
 		</ul>
		</div>
		</div></div></div>
		</form:form>
 
 <%@ include file="/common/foot.jsp"%>
 
  